<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body{
            font: 12px "simhei", Arial, Helvetica, sans-serif;
            color: #666;
        }
        body>div{
            width: 198px;
            height: 233px;
            margin-right: 5.19px;
            background: #E8E8E8;
            box-sizing: border-box;
            text-align: center;
        }
        .p1{
            margin: 0;
            color: #000;
        }
        .p2{
            margin: 6px;
            font-weight: bold;
            color: #0AA1ED;
        }
       /* a{
            margin-top: 6px;
            margin-bottom: 6px;
            padding-top: 6px;
            font-size:12px;
            font-weight: bold;
            color: #fff;
            text-align: center;
            text-decoration: none;
            background-color: #0aa1ed;
            width: 100px;
            height: 18px;
            border-radius: 2px;
            !*行内元素或行内块元素，可以给上级元素添加text-align: center;实现居中
            块级元素居中需要通过外边距 margin:0 auto;  上下0  左右自动*!
            !*display: inline-block;*!
            display: block;
            margin: 0 auto;
        }*/
        a{
            display: block;
            margin: 0 auto;
            width: 100px;
            height: 24px;
            background-color: #0AA1ED;
            line-height: 24px;
            text-decoration: none;
            color: white;
            border-radius: 2px;
        }
    </style>

</head>
<body>
<div>
    <img src="img3.png" alt="">
    <p class="p1">戴尔(DELL)XPS13-9360-R1609 13.3英寸微边框笔记本电脑</p>
    <p class="p2">￥4600.00</p>
    <a href="1综合练习.html">查看详情</a>
</div>
</body>
</html>